package com.laolang.shop.modules.auth.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * @author khlbat
 * @version 1.0
 * @date 2020/11/1 20:46
 */
@Documented
@Retention(RUNTIME)
@Target(METHOD)
@Inherited
public @interface Auth {

    boolean requireLogin() default true;

}
